package com.link.base.base.common.dao.mybatis.mapper;

import com.link.base.base.common.model.Announce;
import com.link.base.base.user.model.User;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/9 11:04
 * @version 1.0
 */

public interface AnnounceMapper extends BasicMapper<Announce> {

    /**
     * 查看开放的公告列表
     * @param entity
     * @return
     * @throws Exception
     */
    public List<Announce> queryPublicPage(Announce entity) throws Exception;

    /**
     * 查询能看到指定公告的所有用户
     * @param entity
     * @return
     * @throws Exception
     */
    public List<User> queryUserScopePage(Announce entity) throws Exception;

    /**
     * 查看未阅读公告列表
     * @param entity
     * @return
     * @throws Exception
     */
    public List<Announce> queryMyAnnouncePage(Announce entity) throws Exception;


}
